//
//  SelectSeatView.m
//  ZiJinLian
//
//  Created by 震霄 张 on 2018/4/5.
//  Copyright © 2018年 lzy. All rights reserved.
//

#import "SelectSeatView.h"

@interface SelectSeatView()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UIView *bgView;

@end

@implementation SelectSeatView

+(instancetype)selectSeatView
{
	return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
}

-(void)awakeFromNib
{
	[super awakeFromNib];
	self.autoresizingMask = UIViewAutoresizingNone;
	self.nameLabel.userInteractionEnabled = NO;
	self.priceLabel.userInteractionEnabled = NO;
	self.bgView.userInteractionEnabled = NO;
}
- (IBAction)selectBtnCLick:(id)sender {
	if ([self.delegate respondsToSelector:@selector(deleteSeat:)]) {
		[self.delegate deleteSeat:self.model];
	}
	
}
-(void)setModel:(ZFSeatModel *)model
{
	_model = model;
	self.nameLabel.text = [NSString stringWithFormat:@"%@排%@座",model.rowId,model.columnId];
	self.priceLabel.text = [NSString stringWithFormat:@"¥%@",model.price];
	
}


@end
